licenses(["notice"])

package(default_visibility = ["//:__subpackages__"])

java_library(
    name = "aead_factory",
    srcs = ["AeadFactory.java"],
    deps = [
        "//src/main/java/com/google/crypto/tink:aead",
        "@maven//:com_google_errorprone_error_prone_annotations",
    ],
)

java_library(
    name = "aes_gcm_factory",
    srcs = ["AesGcmFactory.java"],
    deps = [
        ":aead_factory",
        "//src/main/java/com/google/crypto/tink:aead",
        "//src/main/java/com/google/crypto/tink/subtle:aes_gcm_jce",
        "@maven//:com_google_errorprone_error_prone_annotations",
    ],
)

java_library(
    name = "aes_gcm_siv",
    srcs = ["AesGcmSiv.java"],
    deps = [
        "//src/main/java/com/google/crypto/tink:aead",
        "//src/main/java/com/google/crypto/tink/annotations:alpha",
        "//src/main/java/com/google/crypto/tink/subtle:random",
        "//src/main/java/com/google/crypto/tink/subtle:subtle_util_cluster",
        "//src/main/java/com/google/crypto/tink/subtle:validators",
    ],
)
